
plugin_o = plugin.o

INSTALL_HEADER =  
INSTALL_APP =  libuhp_dbpool.so

all	: $(INSTALL_APP) 
	
libuhp_dbpool.so : $(plugin_o)
	g++ -shared -o $@  $(plugin_o) -L. -L$(HOME)/lib -luhp_mysql -luhp_util -luhp_api
	

.cpp.o	:
	g++ -g -fPIC -O2 -Wall -Werror -Wno-write-strings   -o $@ -c $< -I. -I/usr/include/mysql -I/usr/include -I$(HOME)/include/uhp
.c.o	:
	gcc -std=gnu99 -g -fPIC -O2  -Wall -Werror -Wno-write-strings   -o $@ -c $< -I. -I/usr/include -I$(HOME)/include/uhp

prepro_all:

clean	:
	rm -f *.so *.o

install :
	make
	mkdir -p $(HOME)/lib
	for i in $(INSTALL_APP);\
	do \
		echo "rm -f $$i";\
		rm -f $(HOME)/lib/$$i;\
		echo "cp -f $$i";\
		cp -f $$i $(HOME)/lib;\
	done
